package cloud;

import cloud.pojo.Orders;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import util.IdWorker;
import util.JwtUtil;
import util.VagueUtil;


@SpringBootApplication
@EnableEurekaClient//服务端
public class OrdersApplication{

    @Bean
    public VagueUtil<Orders> ordersVagueUtil(){
        return new VagueUtil<Orders>();
    }
    @Bean
    public JwtUtil jwtUtil(){
        return new JwtUtil();
    }
    @Bean
    public IdWorker getIdWorker(){
        return new IdWorker();
    }

    public static void main(String[] args) {
        SpringApplication.run(OrdersApplication.class,args);
    }
}
